package com.xushi.dao;

import com.xushi.model.Activity;
import com.xushi.model.UserTemplate;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository("activityDao")
public interface ActivityRepository extends CrudRepository<Activity, Integer> {
    Activity getActivityById(int activityID);

    List<Activity> getActivitiesByUserTemplateAndState(UserTemplate userTemplate, String state);
}
